{% extends "myadmin/base.html" %} {% block mainbody %}
<h3>会员信息列表</h3>
<table class="table table-bordered table-striped">
    <thead>
        <tr>
            <th>
                登录名
            </th>
            <th>
                会员名称
            </th>
            <th>
                性别
            </th>
            <th>
                电话
            </th>
            <th>
                状态
            </th>
            <th>
                创建时间
            </th>
            <th>
                操作
            </th>
        </tr>
    </thead>
    <tbody>
        {% for user in userList %}
        <tr>
            <td>
                {{user.username}}
            </td>
            <td>
                {{user.name}}
            </td>
            <td>
                {% if user.sex == 1 %} 男{% else %}女 {% endif %}
            </td>
            <td>
                {{user.phone}}
            </td>
            <td>
                {% if user.state == 1 %} 在用 {% elif user.state == 2 %} <span style="color: red">禁用</span> {% elif user.state == 0 %} <span style="color: green">管理员 </span>{% else %} 暂无 {% endif %}
            </td>
            <td>
                {{user.addtime}}
            </td>
            <td>
                <a href="{% url 'myadmin_users_edit' user.id %}" class="view-link">编辑</a>
                <a href="{% url 'myadmin_users_password' user.id %}" class="view-link">修改密码</a>
                <a href="{% url 'myadmin_users_del' user.id %}" class="view-link">删除</a>
            </td>
        </tr>
        {% endfor %}
    </tbody>
</table>
<div class="span9">
    <div class="pagination span8" style="margin-top: 0;text-align: right;">
        <ul>
            <li style="">
                <a href="#">共{{pageCount}}页</a>
            </li>
            {% for i in plist %}
            <li>
                <a href="{% url 'myadmin_users_index' i %} " ">{{i}}</a>
            </li>
            {% endfor %}
        </ul>
    </div>
</div>
{% endblock %}